{% extends "site/base_site.html" %}
{% load bootstrap3 %}

{% block title %}{{ title }}{% endblock %}
{% block content %}
    <div class="sign-box">
        <h1>{{ title }}</h1>
        {% bootstrap_messages %}
        {% bootstrap_form_errors form %}
        <form action="" method="post">
            {% csrf_token %}
            {% bootstrap_field form.username %}
            {% bootstrap_field form.password %}
            <div class="form-group">
                <button type="submit" class="btn btn-primary">登录</button>
                <a href="{% url 'password_reset' %}">忘记密码？</a>
            </div>
        </form>
    </div>
    <p class="text-center"> 还没有帐号？<a href="{% url 'register' %}">马上注册</a></p>
{% endblock %}